<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
    </style>

</head>
<body>
<canvas id="tutorial" width="150" height="150"></canvas>
<script type="text/javascript">
    var canvas = document.getElementById('tutorial');
    console.log(1);
    console.log(canvas);
    var ctx = canvas.getContext('2d');
    console.log(ctx);
</script>
</body>
</html>